package com.smart.common.enums;

/**
 * @author macbook
 */
public enum ProjectConstructionStatusEnum {
    /**
     *
     */
    UN_START("未开"),
    RUNNING("在施"),
    STOP("停工"),
    WAIT_ACCEPT("完工待验"),
    FINISH("完工"),
    DIE("死活")
    ;
    private String desc;

    ProjectConstructionStatusEnum(String desc) {
        this.desc = desc;
    }

    public static ProjectConstructionStatusEnum getEnum(String status) {
        if (status == null) {
            return null;
        }
        for (ProjectConstructionStatusEnum value : ProjectConstructionStatusEnum.values()) {
            if (value.name().equals(status)) {
                return value;
            }
        }

        return null;
    }
}
